<?php
/**
 * Created by PhpStorm.
 * User: qingyun
 * Date: 17/5/4
 * Time: 下午7:49
 */

namespace Home\Widget;
use Think\Controller;
class CateWidget extends Controller {
    public function menu(){
        $menu = M('poster')->where(['id'=>25])->getField('id,setting');
        $this->assign('menu',$menu);
        $this->display('Cate:menu');
    }
}